import java.util.Scanner;

public class Dmmo {
	public static void main (String[] args) { 
		Scanner sc=new Scanner(System.in);
		System.out.println("请输入你出行的月份:1~12");
		  int month=sc.nextInt();
		System.out.println("请问你选着头等舱还是经济舱：1.头等舱 2.经济舱");
		  int shu=sc.nextInt();
		  double income=5000;
		  double tax=0;
		  switch (month) {
			case 4:
			case 5:
			case 6:
			case 7:
			case 8:
			case 9:
			case 10:
				 if (shu==1) {
						tax=income*0.9;
					}else{
						tax=income*0.8;
					}
				break;
			case 1:
			case 2:
			case 3:
			case 11:
			case 12:
				if (shu==1) {
					tax=income*0.5;
				}else{
					tax=income*0.4;
				}
			break;
			}
		  System.out.println("你的机票价格为"+tax);
	}
}
